<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>背景图片</title>
    <style>
      div {
        width: 300px;
        height: 300px;
        /* 如果要添加背景图片，url属性是必须的，同时里面的路径不要加引号   */
        background-image: url(images/logo.png);
      }
    </style>
  </head>

  <body>
    <div></div>
  </body>
</html>
